package com.ahm.dto;

/*功能描述
 * @author ahm
 */
public class TreeNode {

    private Integer id;
    private Integer pId;
    private String  name;
    private boolean selected;

    public TreeNode() {
    }

    public TreeNode(Integer id, Integer pId, String name, boolean selected) {
        this.id = id;
        this.pId = pId;
        this.name = name;
        this.selected = selected;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }

    @Override
    public String toString() {
        return "TreeNode{" +
                "id=" + id +
                ", pId=" + pId +
                ", name='" + name + '\'' +
                ", selected=" + selected +
                '}';
    }
}
